package system

import (
	"github.com/gin-gonic/gin"
	"liuche17.cn/go-blog/server/middleware"
)

type UserRouter struct{}

// InitUserRouter 管理员相关路由初始化
func (s *UserRouter) InitUserRouter(Router *gin.Engine) {
	Router.POST("login", userApi.Login) // 处理用户登录
	userRouter := Router.Group("admin").Use(middleware.JWTAuth())
	{
		userRouter.POST("password/update", userApi.UpdatePassword)
		userRouter.GET("user/info", userApi.GetUserInfo)
	}
}
